package eureka.provider.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

@RestController
public class ProviderColony8000Controller {
    @GetMapping("c1")
    public String c1(){
        return "provider_colony_8000";
    }

    @GetMapping("c2")
    public String c2(){
        try{
            TimeUnit.SECONDS.sleep(3);
            return "provider_colony_8000_c2";
        }catch (InterruptedException e){
            e.printStackTrace();
            return "error";
        }
    }
}
